

package com.maoshi.shop.distribution.comment.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.maoshi.shop.common.serializer.json.ImgJsonSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("精简版分销员数据")
public class DistributionUserSimpleDto {

    @ApiModelProperty(value = "分销员昵称")
    private Long distributionUserId;

    @ApiModelProperty(value = "分销员昵称")
    private String nickName;

    @ApiModelProperty(value = "真实姓名")
    private String realName;

    @ApiModelProperty(value = "头像")
//    @JsonSerialize(using = ImgJsonSerializer.class)
    private String pic;

    @ApiModelProperty(value = "绑定时间")
    @JsonFormat(pattern = "yyyy/MM/dd")
    private Date bindTime;
}
